import { Component, OnInit } from '@angular/core';
import { HttpClient } from '@angular/common/http';

@Component({
    selector: 'qk-weather',
    templateUrl: 'weather.component.html',
    styleUrls: ['weather.component.scss'],
    providers: []
})
export class QkWeatherComponent implements OnInit {
    today: any;
    weathers: any[] = [];
    constructor(private http: HttpClient) { };
    
    public ngOnInit() {
        this.today = { 'weather': 'sun-shower', 'weatherDesc':'晴雨', 'temperature': '23℃~28℃', 'wind': '西北风 2-3级', 'date':'23日', 'week':'星期一' };
        this.weathers.push({ 'weather': 'sunny', 'weatherDesc':'晴雨', 'temperature': '23℃~28℃', 'wind': '西北风 2-3级', 'date':'23日', 'week':'星期一' });
        this.weathers.push({ 'weather': 'sun-shower', 'weatherDesc':'晴雨', 'temperature': '23℃~28℃', 'wind': '西北风 2-3级', 'date':'23日', 'week':'星期一' });
        this.weathers.push({ 'weather': 'cloudy', 'weatherDesc':'晴雨', 'temperature': '23℃~28℃', 'wind': '西北风 2-3级', 'date':'23日', 'week':'星期一' });
        this.weathers.push({ 'weather': 'rainy', 'weatherDesc':'晴雨', 'temperature': '23℃~28℃', 'wind': '西北风 2-3级', 'date':'23日', 'week':'星期一' });
        this.weathers.push({ 'weather': 'flurries', 'weatherDesc':'晴雨', 'temperature': '23℃~28℃', 'wind': '西北风 2-3级', 'date':'23日', 'week':'星期一' });
        this.weathers.push({ 'weather': 'thunder-storm', 'weatherDesc':'晴雨', 'temperature': '23℃~28℃', 'wind': '西北风 2-3级', 'date':'23日', 'week':'星期一' });
    }

}

